#include <bits/stdc++.h>
int n, t;
int a[1000005];
using namespace std;

bool checkSubset(int depth, int currentSum) {
  if (depth > n) {
    return currentSum == 0;
  }
  if (currentSum == 0)
    return true;
  return checkSubset(depth + 1, currentSum - a[depth]) ||
         checkSubset(depth + 1, currentSum);
}

int main() {
  cin >> n >> t;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  if (checkSubset(1, t)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}